

import request from '@/utils/request'

export default {
    //获取教育头条分页列表
    getCustomerShowListPage(page, customerShowQuery) {
        return request({
            url: `/customer/selectAll`,
            method: 'post',
            data: {
                page: page,
                name: customerShowQuery.name,
                upTime: customerShowQuery.startTime,
                timeLimit: customerShowQuery.endTime,
            }
        })
    },
    //移除教育头条到回收站或者删除
    stopOrOpen(id, accountState) {
        return request({
            url: `/customer/deleteOrDisableOne`,
            method: 'post',
            data: {
                id: id,
                accountState: accountState
            }
        })
    },
    //批量删除教育头条
    deleteBatchesById(checkList) {
        return request({
            url: `/customer/deleteBatches`,
            method: 'post',
            data: {
                ids: checkList
            }

        })
    },
    //编辑教育头条
    editCustomerShow(id) {
        return request({
            url: `/customer/selectCustomerAndOrder`,
            method: 'post',
            data: {
                id: id
            }

        })
    }

}